/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.eng.scc.core.data;

import java.sql.Date;

/**
 *
 * @author Rafael
 */
public class Device extends Skeleton
{
    private int vehicleId;
    private int serial;
    private String description = "";
    private Date installationDate;
    private int status;

    public int getStatus()
    {
        return status;
    }

    public void setStatus( int status )
    {
        this.status = status;
    }
    
    public int getSerial()
    {
        return serial;
    }

    public void setSerial( int serial )
    {
        this.serial = serial;
    }

    @Override
    public String toString()
    {
        return serial + "";
    }
    
    public int getVehicleId()
    {
        return vehicleId;
    }

    public void setVehicleId( int vehicleId )
    {
        this.vehicleId = vehicleId;
    }

    public String getDescription()
    {
        return description;
    }

    public void setDescription( String description )
    {
        this.description = description;
    }

    public Date getInstallationDate()
    {
        return installationDate;
    }

    public void setInstallationDate( Date installationDate )
    {
        this.installationDate = installationDate;
    }

    @Override
    public boolean equals( Object obj )
    {
        if ( obj == null )
        {
            return false;
        }
        if ( getClass() != obj.getClass() )
        {
            return false;
        }
        final Device other = ( Device ) obj;
        if ( this.getId() != other.getId() )
        {
            return false;
        }
        return true;
    }
}
